using System;
using System.Diagnostics;
using System.Windows.Forms;

namespace Publish
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length < 2)//获取线程名称，防止重复打开应用程序
            {
                Application.Run(new Publish());
            }
        }
    }
}
